import 'package:flutter/material.dart';

const String IMAGEMODEL_LIGHTSCREEN_LIST = 'IMAGEMODEL_LIGHTSCREEN_LIST';
const String IMAGEMODEL_LIGHTBAR_LIST = 'IMAGEMODEL_LIGHTBAR_LIST';

class ImageModel {
  String image01;
  Color color01;
  String image02;
  Color color02;

  ImageModel({
    String image01,
    Color color01,
    String image02,
    Color color02,
  }) {
    this.image01 = image01;
    this.color01 = color01;
    this.image02 = image02;
    this.color02 = color02;
  }

  ImageModel.fromMap(Map<String, dynamic> map)
    : image01 = map['image01'] as String,
      color01 = map['color01'] == null ? null : Color(map['color01']),
      image02 = map['image02'] as String,
      color02 = map['color02'] == null ? null : Color(map['color02']);


  Map<String, dynamic> toMap()  {
    Map<String, dynamic> map = Map<String, dynamic>();
    map['image01'] = image01;
    map['color01'] = color01?.value;
    map['image02'] = image02;
    map['color02'] = color02?.value;
    return map;
  }
}

///灯屏数组
List<ImageModel> imageList01 = [
  ImageModel(
    image01: 'assets/images/banner_1_1.png',
    image02: "assets/images/banner_1_2.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner_2_1.png',
    image02: "assets/images/banner_2_2.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner_3_1.png',
    image02: "assets/images/banner_3_2.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner_4_1.png',
    image02: "assets/images/banner_4_2.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner_5_1.png',
    image02: "assets/images/banner_5_2.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner_6_1.png',
    image02: "assets/images/banner_6_2.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner_7_1.png',
    image02: "assets/images/banner_7_2.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner_8_1.png',
    image02: "assets/images/banner_8_2.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner_9_1.png',
    image02: "assets/images/banner_9_2.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner_10_1.png',
    image02: "assets/images/banner_10_2.png",
    color01: null,
    color02: null,
  ),
];

///灯条数组
List<ImageModel> imageList02 = [
  ImageModel(
    image01: 'assets/images/banner1.png',
    image02: "assets/images/banner1.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner2.png',
    image02: "assets/images/banner2.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner3.png',
    image02: "assets/images/banner3.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner4.png',
    image02: "assets/images/banner4.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner5.png',
    image02: "assets/images/banner5.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner6.png',
    image02: "assets/images/banner6.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner7.png',
    image02: "assets/images/banner7.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner8.png',
    image02: "assets/images/banner8.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner9.png',
    image02: "assets/images/banner9.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner10.png',
    image02: "assets/images/banner10.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner11.png',
    image02: "assets/images/banner11.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner12.png',
    image02: "assets/images/banner12.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner13.png',
    image02: "assets/images/banner13.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner14.png',
    image02: "assets/images/banner14.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner15.png',
    image02: "assets/images/banner15.png",
    color01: null,
    color02: null,
  ),
  ImageModel(
    image01: 'assets/images/banner16.png',
    image02: "assets/images/banner16.png",
    color01: null,
    color02: null,
  ),
];
